package com.cf.dao;

import com.cf.entity.Address;
import com.cf.entity.User;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface AddressDao {
    //根据用户id查询用户地址
    public List<Address> selectUserAddress(long userid);
    //根据addressid查询用户地址
    public Address selectByAddressid(long addressid);
    //修改用户地址
    public int updateAddress(Address address);
    //删除地址信息
    public int deleteAddress(long addressid);
    //添加地址
    public int addAddress(Address address);
    //根据用户id查询所有用户地址
    public List<Address> selectAllAddress(long userid);


}
